package com.aracky.assess.model.entity;

import com.aracky.common.entitybase.BaseCommonEntity;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 岗位考核指标配置
 *
 * 新添
 *     @ApiModelProperty("类型描述")
 *     @TableField("desc_info")
 *     private String descInfo;
 * </p>
 *
 * @author zzp
 * @since 2022-08-01 09:43:18
 */
@Getter
@Setter
@TableName("hr_kpi_post_performance_config")
@ApiModel(value = "HrKpiPostPerformanceConfig对象", description = "岗位考核指标配置")
public class HrKpiPostPerformanceConfig extends BaseCommonEntity {

    @ApiModelProperty("配置ID")
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("岗位ID")
    @TableField("post_id")
    private Long postId;

    @ApiModelProperty("考核指标")
    @TableField("performance_index")
    private String performanceIndex;

    @ApiModelProperty("考核标准")
    @TableField("performance_standard")
    private String performanceStandard;

    @ApiModelProperty("指标占比")
    @TableField("performance_percent")
    private String performancePercent;

    @ApiModelProperty("评分标准")
    @TableField("assessment_standard")
    private String assessmentStandard;

    @ApiModelProperty("数据来源/计算方式")
    @TableField("assessment_datasource")
    private String assessmentDatasource;

    @ApiModelProperty("类型描述")
    @TableField("desc_info")
    private String descInfo;

    @ApiModelProperty("删除标志（0代表存在 2代表删除）")
    @TableField("del_flag")
    @TableLogic(delval = "2",value = "0")
    private String delFlag;

//    @ApiModelProperty("用户id(不映射数据库表)")
//    private Long userId;

}
